package run;



import gates.*;
import mathtools.*;
import register.Register;

public class Richards_testmain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Register r = new Register(3);	

		
		for (int i=0;i<r.getNumStates();i++){
		r.setElement(0,i,new Complex(i+1));

		}
		r.normalise();

		System.out.print(r +"\n");
		Factory.functional=false;
		Gate gate = Factory.createAllCnot(2);

		gate.apply(r);
		System.out.println(r.toString());


	}

}
